function [output] = viterbi_decode42 (input)
% Function for Viterbi Decoding.
% Currently this works for 2 bits only. We'll make it
% more generic later :-)

len = length(input);
output = randn(1, len);

for i=1:len
    if(input(i) == 0 || input(i) == 1)
        output(i)=0;
    elseif (input(i) == 2 || input(i) == 3)
        output(i)=1;
    end
end
